<?php echo $form->create('Ketqua');?>
<table>
<tr>
	<td><?php echo $form->input('lop',array('id'=>'lop','label'=>'Lớp','type'=>'select','options'=>$lops));?></td>
	<td><?php echo $form->input('nienkhoa',array('id'=>'nk','label'=>'Niên khóa','type'=>'select','options'=>$namhoc));?></td>
	<td><?php echo $form->input('hk',array('id'=>'hk','label'=>'Học kỳ','type'=>'select','options'=>$hk));?></td>
</tr>
<tr>
	<td><?php echo $form->input('chondau',array('id'=>'chondau','label'=>'Dấu','type'=>'select','options'=>array('<'=>'<','<='=>'<=','>'=>'>','>='=>'>=','=')));?></td>
	<td><?php echo $form->input('diem',array('id'=>'diem','label'=>'Điểm','type'=>'text'));?></td>
	<td><?php echo $form->end(array('label'=>'Thực hiện','id'=>'submit')); //echo $js->submit('Thực hiện',array('url'=>array('action'=>'updateds'),'update'=>'#ds'));?></td>
</tr>
</table>
<div id='ds'>
</div>
<script type="text/javascript">
$(document).ready(function () {
	$("#submit").bind("click", function (event) {$.ajax({
																data:$("#submit").closest("form").serialize(),
																dataType:"html",
																success:function (data, textStatus){$("#ds").html(data);},
																type:"post", url:"../\ketquas/\updateds"
																	});
return false;});});
</script></body>